package com.housediyadmin.events.houseEvents
{
	import flash.events.Event;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/30
	 */	
	public class GetHousesEvent extends Event
	{
		public static const GET_HOUSES_BY_IDS:String = "getHouseByIds";
		public static const UPDATE_HOUSE_MODEL:String = "updateHouseModel";
		
		public static const GET_HOUSE_IDS:String = "getHouseIds";
		public static const UPDATE_HOUSE_IDS:String = "updateHouseIds";
	    
		public var buildingIds:ArrayCollection;
		public var houseIds:ArrayCollection;
		public var houseArray:ArrayCollection;
		
		/**
		 * type说明：
		 * GET_HOUSES_BY_IDS：传入参数为houseIds，返回houseList；
		 * GET_HOUSE_IDS：传入参数为buildingIds，返回houseIds
		 * @param type
		 * @param buildingIds
		 * @param houseIds
		 * @param houseArray
		 * 
		 */		
		public function GetHousesEvent(type:String, buildingIds:ArrayCollection = null, houseIds:ArrayCollection = null, houseArray:ArrayCollection = null)
		{
			super(type);
			this.buildingIds = buildingIds;
			this.houseIds = houseIds;
			this.houseArray = houseArray;
		}
		
		override public function clone():Event
		{
			return new GetHousesEvent(type, buildingIds, houseIds, houseArray);
		}
	}
}